﻿
using UnityEngine;

namespace Gameplay.CharacterFramework
{
    [CreateAssetMenu(fileName = "NewNormalAttack", menuName = "Skills/NormalAttack")]
    public class NormalAttack : Skill
    {
        public override void Begin()
        {
            base.Begin();
            _physicsComponent.SetVelocityZero();
        }

        public override void Trigger()
        {
            base.Trigger();
            
            if (Config.effectVFX != null) 
            {
                _particleManager.PlaySwordTrail(Config.effectVFX);
            }
            //CurrentWeapon.SetActive(true);
            CurrentWeapon.ToToggleDetection(true);
        }

        public override void Finish()
        {

            //CurrentWeapon.SetActive(false);
            CurrentWeapon.ToToggleDetection(false);
        }


    }
}
